import { _decorator, Component, Label, Node } from "cc";
const { ccclass, property } = _decorator;

@ccclass("ScoreUI")
export class ScoreUI extends Component {
  @property(Label)
  public scoreLabel: Label = null;

  protected start() {}

  protectedupdate(deltaTime: number) {}

  public updateScore(score: number) {
    this.scoreLabel.string = score.toString();
  }
}
